home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Random
/
random-outside
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-22
|
316b
|
15 lines
random-outside melody how-much-outside
&key (seed nil)
Takes a symbol-list and makes a new
symbol-list by randomly changing symbols
to a maximum of +- how-much-outside.
(setq melo '(a b c d c g f b))
(random-outside melo 1 :seed 0.99)
->(b b b c b h f b)
(random-outside melo 3 :seed 0.88)
->(c d b f f d g -b)